/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.hanserver.socket;

import br.com.sales.hanserver.action.hancadpo.getdatagrid.GetDataProductGridAction;
import br.com.sales.hanserver.action.hancadpo.inactive.DeleteProductAction;
import br.com.sales.hanserver.action.hancadpo.insertproduct.InsertProductAction;
import br.com.sales.hanserver.action.hancadpo.refresh.RefreshProductDataGrid;
import java.util.List;
import java.util.Map;

/**
 *
 * @author v
 */
public class HanCadPOServer {

    public Map insertProduct(Map fields) {
        return new InsertProductAction().insertProduct(fields);
    }

    public List<Map> getDateGrid(int page) {
        return new GetDataProductGridAction().getDataGrid(page);
    }
    
    public List<Map> getRefreshDateGrid(Map items) {
        return new RefreshProductDataGrid().getItems(items);
    }

    public void inactivate(long sequence) {
        new DeleteProductAction().inactive(sequence);
    }
}
